# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=bandwhich
pkgver=0.16.0
pkgrel=0
pkgdesc="Terminal bandwidth utilization tool"
url="https://github.com/imsnif/bandwhich"
arch="all !s390x !mips !mips64" # Limited by cargo
license="MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/imsnif/bandwhich/archive/$pkgver.tar.gz"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 target/release/bandwhich "$pkgdir"/usr/bin
}

sha512sums="c8708ebce6799cb4017e2dae40735d83b2dc51736048c1f7cdf5a59197434a30f7a5a3ccb3bb323892cada24de88099660a42c0a0f2cd7c477bf5a7d5b1ac158  bandwhich-0.16.0.tar.gz"
